package com.smarth.zhizulian.enums;

/**
 * Created by 18865 on 2017/12/26.
 */

public enum Sex {
    s0("男"), s1("女");
    private String name;

    Sex(String name) {
        this.name = name;
    }

    public static String getName(Integer i) {
        return i == null ? "" : Sex.values()[i].name;
    }

    @Override
    public String toString() {
        return name;
    }
}
